package safari.model.free;

import java.sql.SQLException;
import java.util.List;

public interface FreeBoardDao {
	public void freeBoardRegister(FreeBoardVO fvo) throws SQLException;
	public void freeBoardUpdate(FreeBoardVO fvo) throws SQLException;
	public FreeBoardVO freeBoardUpdateView(int no) throws SQLException;
	public void freeBoardDelete(int no) throws SQLException;
	public FreeBoardVO freeBoardShowContent(int no) throws SQLException;
	public void freeBoardUpdateHits(int no)  throws SQLException;
	public List<FreeBoardVO> freeBoardGetAllList(int no) throws SQLException;
	public int freeBoardGetTotalContentCount()  throws SQLException;
	
	//reply 답글 메소드
	public void freeBoardReplyRegister(FreeBoardVO fvo)  throws SQLException;
	public FreeBoardVO freeBoardReplyView(int no) throws SQLException;
	public void freeBoardReplyUpdate(FreeBoardVO fvo)  throws SQLException;
	public void freeBoardReplyDelete(int no)  throws SQLException;
	
	//comment 덧글 메소드(ajax)처리
	public void freeBoardCommentRegister(FreeBoardCommentVO fbcVO)  throws SQLException;
	public void freeBoardCommentUpdate(FreeBoardCommentVO fbcVO) throws SQLException;
	public void freeBoardCommentDelete(int no)  throws SQLException;
	
	//검색 결과
	public List<FreeBoardVO> freeBoardSearchByTitleOrContent(String word)  throws SQLException;
	public List<FreeBoardVO> freeBoardSearchByTitle(String word)  throws SQLException;
	public List<FreeBoardVO> freeBoardSearchById(String word)  throws SQLException;
}
